package com.example.ranl_safeapi.Service;

import com.example.ranl_safeapi.Entity.PageResult;
import com.example.ranl_safeapi.Entity.Student;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface StudentService {
    //按照姓名前缀查询
    PageResult<Student> findByPrefix(Integer pageNum, Integer pageSize, String namePrefix);

    //按照生日范围查询
    PageResult<Student> findByBirth(Integer pageNum, Integer pageSize, Date startday, Date finalday);
}
